TEMPLATE = lib
QT += core
CONFIG += plugin
CONFIG += debug_and_release
CONFIG(debug, debug|release) {
    TARGET = qzipd
    DESTDIR = $$PWD/../bin/debug/
} else {
    TARGET = qzip
    DESTDIR = $$PWD/../bin/release/
}
win32 {
    #QMAKE_CXXFLAGS -= -Zc:strictStrings
    DEFINES += BUILD_QZIP_LIB
    DEFINES += _WINDOWS
    DEFINES += _AFXDLL WINVER=0x0501
    DEFINES -= UNICODE
}
wince*: DEFINES += NO_ERRNO_H
INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/zlib
LIBS += -L$$DESTDIR

HEADERS += \
	qzip.h
	
SOURCES+= \
    $$PWD/zlib/adler32.c \
    $$PWD/zlib/compress.c \
    $$PWD/zlib/crc32.c \
    $$PWD/zlib/deflate.c \
    $$PWD/zlib/gzclose.c \
    $$PWD/zlib/gzlib.c \
    $$PWD/zlib/gzread.c \
    $$PWD/zlib/gzwrite.c \
    $$PWD/zlib/infback.c \
    $$PWD/zlib/inffast.c \
    $$PWD/zlib/inflate.c \
    $$PWD/zlib/inftrees.c \
    $$PWD/zlib/trees.c \
    $$PWD/zlib/uncompr.c \
    $$PWD/zlib/zutil.c \
    $$PWD/qzip.cpp

TR_EXCLUDE += $$PWD/*
